package ee.karileet.productcatalogue.dao;
import ee.karileet.productcatalogue.model.Attribute;

/**
 * @author Markus Karileet
 * @version 1.0
 * @created 29-nov-2013 16:09:21
 */
public interface IAttributeHome {

	/**
	 * 
	 * @param attribute    attribute
	 */
	public void attachClean(Attribute attribute);

	/**
	 * 
	 * @param attribute    attribute
	 */
	public void attachDirty(Attribute attribute);

	/**
	 * 
	 * @param attribute    attribute
	 */
	public void delete(Attribute attribute);

	/**
	 * 
	 * @param expressions    expressions
	 */
	public java.util.List<Attribute> find(java.util.List<org.hibernate.criterion.SimpleExpression> expressions);

	public java.util.List<Attribute> findAll();

	/**
	 * 
	 * @param attribute    attribute
	 */
	public java.util.List<Attribute> findByExample(Attribute attribute);

	/**
	 * 
	 * @param id    id
	 */
	public Attribute findById(int id);

	/**
	 * 
	 * @param attribute    attribute
	 */
	public Attribute merge(Attribute attribute);

	/**
	 * 
	 * @param attribute    attribute
	 */
	public void persist(Attribute attribute);
	
	public void save(Attribute attribute);

}